package com.andy.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(name="lagou-code-server")
@Component
public interface CodeService {

    @RequestMapping("/code/validate/{email}/{code}")
    public int validate(@PathVariable(value = "email") String email,@PathVariable(value = "code") String code);

}
